package Test09;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: YKH
 * Date: 2022-11-06
 * Time: 9:31
 */
public class Person {
    int b = 10;
    public static void main(String[] args) {
        Person person = new Person();
        Person.Student student = person.new Student();
        int a = student.a;
        new animal().test();
    }

    public int add() {
        Student student = new Student();

        return student.a;
    }
    class Student {
        public int a = 10;

        public int add2() {
            System.out.println(b);
            return add();
        }
    }

    static class animal {
        int c = 20;
        public  void test() {
            Person person = new Person();
            person.add();
        }
    }
}
